/*******************************************************************************
 * Copyright (c) 2023. 山东新北洋信息技术股份有限公司 保留所有权利。
 *
 ******************************************************************************/


package online.xuping.thousandsOfWorlds.demo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import online.xuping.thousandsOfWorlds.common.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Schema(description = "【请填写功能名称】")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserDomain extends BaseEntity {

    /**
     * $column.columnComment
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "主键", required = false, hidden = true)
    private Long id;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "名称", required = true, example = "xxxxx")
    @Length(max = 1)
    @NotBlank
    private String name;
    @ApiModelProperty(value = "名称", required = true, example = "xxxxx")
    @Length(max = 1)
    @NotBlank
    private String name2;

    /**
     * $column.columnComment
     */

    @ApiModelProperty(value = "年龄", required = false, example = "xxxxx")
    private Long age;


}
